package com.easylinkin.linkappapi.hcmy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.hcmy.entity.AquacultureArea;
import com.easylinkin.linkappapi.hcmy.entity.AquacultureSpace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * class info :
 *
 * @author liuqihang
 * @date 2021/10/18 15:03
 */
public interface AquacultureAreaMapper extends BaseMapper<AquacultureArea> {

    /**
     * 批量保存水产养殖--示范村数据
     * @param list
     * @return
     */
    int batchInsert(@Param("list") List<AquacultureArea> list);

    /**
     * 水产养殖分页列表查询
     * @param page
     * @param aquacultureSpace
     * @return
     */
    IPage<AquacultureSpace> getAquacultureSpacePage(Page page, @Param("aquacultureSpace") AquacultureSpace aquacultureSpace);


}
